/*
 * @Author: gaojinyu 1593026814@qq.com
 * @Date: 2023-12-04 15:32:15
 * @LastEditors: gaojinyu 1593026814@qq.com
 * @LastEditTime: 2024-01-09 16:59:35
 * @FilePath: \test\src\main.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//导入echarts
import * as echarts from 'echarts'
// 全局组件
import Ui from '@/library/index.js'
import 'lib-flexible/flexible.js'
// 引入elementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import 'mapbox-gl/dist/mapbox-gl.css'
import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'

// 引入高德地图
import AMapLoader from '@amap/amap-jsapi-loader'
window._AMapSecurityConfig = {
  securityJsCode: '19e92b5c1e252ada70b593b3a290d98c'
}
let app = createApp(App)
app.use(Ui)
app.use(ElementPlus)
app.use(store).use(router).mount('#app')

// echarts挂载到原型链上
app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$AMapLoader = AMapLoader










